import request from '@/utils/request'

// 查询专业信息列表
export function listProfessional(query) {
  return request({
    url: '/teaching/professional/list',
    method: 'get',
    params: query
  })
}
// 查询专业信息all列表
export function listProfessionalAll() {
  return request({
    url: '/teaching/professional/listAll',
    method: 'get',
  })
}
// 查询专业信息详细
export function getProfessional(professionalId) {
  return request({
    url: '/teaching/professional/' + professionalId,
    method: 'get'
  })
}

// 新增专业信息
export function addProfessional(data) {
  return request({
    url: '/teaching/professional',
    method: 'post',
    data: data
  })
}

// 修改专业信息
export function updateProfessional(data) {
  return request({
    url: '/teaching/professional',
    method: 'put',
    data: data
  })
}

// 删除专业信息
export function delProfessional(professionalId) {
  return request({
    url: '/teaching/professional/' + professionalId,
    method: 'delete'
  })
}
